/**
 * ClassName 部门列表
 */
Ext.define("app.store.attendance.ListStore",{
	extend:'Ext.data.Store',
//	model:'app.model.StaffModel',//引用model
	fields:[		        
		        {name:'id',type:'string'},
		        {name:'name',type:'string'},
		        {name:'ename',type:'string'},
		        {name:'department',type:'string'},
		        {name:'sid',type:'string'},
		        {name:'overtimework',type:'int'},
		        {name:'leave',type:'int'},
		        {name:'late',type:'int'},
		        {name:'apply',type:'string'},
		        //{name:'department',type:'string'},
		        {name:'remark',type:'string'},
		],
	proxy:{//数据代理
		type:'ajax',//代理方式 ajax
		url:ROOT+'/index.php/Home/Attendance/Select',//请求action 
		reader:{ //读取器 
			type:'json',//数据类型
			root:'data',//数据根节点
			totalProperty:'total',//数据总数
		},
		writer:{
			type:'json'
		}
	},
	pageSize:10, //每页数据量
	autoLoad:true,
})